BudgetItemDetail

For one specific category, holds all the budget information (actual vs. budgeted). Since the user can enter multiple budget items per category, holds the list of all budget items for a single category. Amounts are stored in terms of the given category's currency

Constructors

Link copied to clipboard
constructor(numIntervals: Int, item: BudgetItem)

Constructor when we have a budget item (non-null).

constructor(numIntervals: Int, category: Account)

Constructor when building an unbudgeted item from a category.

Properties

Link copied to clipboard

The actual amount in the currency specified by ._currency.

Link copied to clipboard

The budget item list, all for a particular category account. Can be empty if an unbudgeted category.

Link copied to clipboard

The actual amount

Link copied to clipboard

The budgeted amount

Link copied to clipboard
Link copied to clipboard

The category or account of the item.

Link copied to clipboard

True if the item should be grouped with income, false to group with expenses.

Link copied to clipboard

The currency used for amounts in this item

Functions

Link copied to clipboard
Link copied to clipboard
fun addRawAmount(interval: Int, amt: Long)
Link copied to clipboard
fun addToActual(interval: Int, actual: Long)
Link copied to clipboard
fun addToBudgeted(interval: Int, budgeted: Long)
Link copied to clipboard
open operator override fun compareTo(other: BudgetItemDetail): Int

{@inheritDoc}

Link copied to clipboard
fun getActual(interval: Int): Long
Link copied to clipboard
fun getBudgeted(interval: Int): Long
Link copied to clipboard
fun getDiff(interval: Int): Long
Link copied to clipboard
fun getRawAmount(interval: Int): Long
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String